package entity;

import java.util.List;

/**
 * Created by Mr.xingkong on 2016/1/13.
 */
public class SecKillEntity
{

    /**
     * code : 1000
     * msg : 请求成功
     * data : {"productList":[{"id":985,"imgUrl":"http://img01.taotaosou.cn/size/image16/M01/02/CB/CgAAQ1aTFFsIAAAAAACr5cb4aboAATQmAJGVsIAAKv9251.jpg","title":"【免邮】印尼进口Astick/爱时乐 威化卷心酥（芝士味） 50g","limitNum":1,"priceStr":"3.00","originalPriceStr":"3.90","startTime":"Jan 13, 2016 9:00:00 PM","endTime":"Jan 14, 2016 9:00:00 PM","tradeType":1,"seckillStatus":4,"stock":3},{"id":986,"imgUrl":"http://img.taotaosou.cn/size/image16/M01/02/CB/CgAAQ1aTFK4IAAAAAACtE7Fh5lIAATQmAJXpQkAAK0r236.jpg","title":"【免邮】韩国进口 农心泡菜辣白菜拉面杯面 86g","limitNum":1,"priceStr":"5.00","originalPriceStr":"9.30","startTime":"Jan 13, 2016 9:00:00 PM","endTime":"Jan 14, 2016 9:00:00 PM","tradeType":1,"seckillStatus":4,"stock":3},{"id":987,"imgUrl":"http://img.taotaosou.cn/size/image16/M01/02/CB/CgAAQFaTFOgIAAAAAAJXGw6RXh0AATQmAJg-e8AAlcz359.jpg","title":"【免邮】台湾进口 牛葫芦 牛轧夹心饼干 110g","limitNum":1,"priceStr":"9.00","originalPriceStr":"15.00","startTime":"Jan 13, 2016 9:00:00 PM","endTime":"Jan 14, 2016 9:00:00 PM","tradeType":1,"seckillStatus":4,"stock":3}],"seckillStatus":4,"allSeckillStatus":{"yestodayStatus":2,"tomorrowStatus":4,"todayStatus":4},"startTime":1452690000000}
     */

    private int code;
    private String msg;
    /**
     * productList : [{"id":985,"imgUrl":"http://img01.taotaosou.cn/size/image16/M01/02/CB/CgAAQ1aTFFsIAAAAAACr5cb4aboAATQmAJGVsIAAKv9251.jpg","title":"【免邮】印尼进口Astick/爱时乐 威化卷心酥（芝士味） 50g","limitNum":1,"priceStr":"3.00","originalPriceStr":"3.90","startTime":"Jan 13, 2016 9:00:00 PM","endTime":"Jan 14, 2016 9:00:00 PM","tradeType":1,"seckillStatus":4,"stock":3},{"id":986,"imgUrl":"http://img.taotaosou.cn/size/image16/M01/02/CB/CgAAQ1aTFK4IAAAAAACtE7Fh5lIAATQmAJXpQkAAK0r236.jpg","title":"【免邮】韩国进口 农心泡菜辣白菜拉面杯面 86g","limitNum":1,"priceStr":"5.00","originalPriceStr":"9.30","startTime":"Jan 13, 2016 9:00:00 PM","endTime":"Jan 14, 2016 9:00:00 PM","tradeType":1,"seckillStatus":4,"stock":3},{"id":987,"imgUrl":"http://img.taotaosou.cn/size/image16/M01/02/CB/CgAAQFaTFOgIAAAAAAJXGw6RXh0AATQmAJg-e8AAlcz359.jpg","title":"【免邮】台湾进口 牛葫芦 牛轧夹心饼干 110g","limitNum":1,"priceStr":"9.00","originalPriceStr":"15.00","startTime":"Jan 13, 2016 9:00:00 PM","endTime":"Jan 14, 2016 9:00:00 PM","tradeType":1,"seckillStatus":4,"stock":3}]
     * seckillStatus : 4
     * allSeckillStatus : {"yestodayStatus":2,"tomorrowStatus":4,"todayStatus":4}
     * startTime : 1452690000000
     */

    private DataEntity data;

    public void setCode(int code) {
        this.code = code;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public void setData(DataEntity data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public DataEntity getData() {
        return data;
    }

    public static class DataEntity {
        private int seckillStatus;
        /**
         * yestodayStatus : 2
         * tomorrowStatus : 4
         * todayStatus : 4
         */

        private AllSeckillStatusEntity allSeckillStatus;
        private long startTime;
        /**
         * id : 985
         * imgUrl : http://img01.taotaosou.cn/size/image16/M01/02/CB/CgAAQ1aTFFsIAAAAAACr5cb4aboAATQmAJGVsIAAKv9251.jpg
         * title : 【免邮】印尼进口Astick/爱时乐 威化卷心酥（芝士味） 50g
         * limitNum : 1
         * priceStr : 3.00
         * originalPriceStr : 3.90
         * startTime : Jan 13, 2016 9:00:00 PM
         * endTime : Jan 14, 2016 9:00:00 PM
         * tradeType : 1
         * seckillStatus : 4
         * stock : 3
         */

        private List<ProductListEntity> productList;

        public void setSeckillStatus(int seckillStatus) {
            this.seckillStatus = seckillStatus;
        }

        public void setAllSeckillStatus(AllSeckillStatusEntity allSeckillStatus) {
            this.allSeckillStatus = allSeckillStatus;
        }

        public void setStartTime(long startTime) {
            this.startTime = startTime;
        }

        public void setProductList(List<ProductListEntity> productList) {
            this.productList = productList;
        }

        public int getSeckillStatus() {
            return seckillStatus;
        }

        public AllSeckillStatusEntity getAllSeckillStatus() {
            return allSeckillStatus;
        }

        public long getStartTime() {
            return startTime;
        }

        public List<ProductListEntity> getProductList() {
            return productList;
        }

        public static class AllSeckillStatusEntity {
            private int yestodayStatus;
            private int tomorrowStatus;
            private int todayStatus;

            public void setYestodayStatus(int yestodayStatus) {
                this.yestodayStatus = yestodayStatus;
            }

            public void setTomorrowStatus(int tomorrowStatus) {
                this.tomorrowStatus = tomorrowStatus;
            }

            public void setTodayStatus(int todayStatus) {
                this.todayStatus = todayStatus;
            }

            public int getYestodayStatus() {
                return yestodayStatus;
            }

            public int getTomorrowStatus() {
                return tomorrowStatus;
            }

            public int getTodayStatus() {
                return todayStatus;
            }
        }

        public static class ProductListEntity {
            private int id;
            private String imgUrl;
            private String title;
            private int limitNum;
            private String priceStr;
            private String originalPriceStr;
            private String startTime;
            private String endTime;
            private int tradeType;
            private int seckillStatus;
            private int stock;

            public void setId(int id) {
                this.id = id;
            }

            public void setImgUrl(String imgUrl) {
                this.imgUrl = imgUrl;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public void setLimitNum(int limitNum) {
                this.limitNum = limitNum;
            }

            public void setPriceStr(String priceStr) {
                this.priceStr = priceStr;
            }

            public void setOriginalPriceStr(String originalPriceStr) {
                this.originalPriceStr = originalPriceStr;
            }

            public void setStartTime(String startTime) {
                this.startTime = startTime;
            }

            public void setEndTime(String endTime) {
                this.endTime = endTime;
            }

            public void setTradeType(int tradeType) {
                this.tradeType = tradeType;
            }

            public void setSeckillStatus(int seckillStatus) {
                this.seckillStatus = seckillStatus;
            }

            public void setStock(int stock) {
                this.stock = stock;
            }

            public int getId() {
                return id;
            }

            public String getImgUrl() {
                return imgUrl;
            }

            public String getTitle() {
                return title;
            }

            public int getLimitNum() {
                return limitNum;
            }

            public String getPriceStr() {
                return priceStr;
            }

            public String getOriginalPriceStr() {
                return originalPriceStr;
            }

            public String getStartTime() {
                return startTime;
            }

            public String getEndTime() {
                return endTime;
            }

            public int getTradeType() {
                return tradeType;
            }

            public int getSeckillStatus() {
                return seckillStatus;
            }

            public int getStock() {
                return stock;
            }
        }
    }
}
